# -*- coding: utf-8 -*-
# @Time     : 2021/4/24 12:25
# @Author   : pengrenjie
# @Email    : 941257162@.com
# @File     : lianxi2.py


import string
list1 = [7,-8,5,4,0,-2,-5]
print(sorted(list1,key=lambda x:x*-10 if x<=0 else x))

s = 'asdf234GDSdf23'

print(sorted(s,key = lambda x:(x.isdigit() and int(x)%2 ==0,x.isdigit(),x.isupper(),x.islower(),x)))

